package com.kila;

public class Person {
    private int id;
    private String studentname;

    private String studentage;


    public Person() {

    }


    public Person(int id, String studentname, String studentage) {
        this.id = id;
        this.studentname = studentname;
        this.studentage = studentage;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStudentname() {
        return studentname;
    }

    public void setStudentname(String studentname) {
        this.studentname = studentname;
    }

    public String getStudentage() {
        return studentage;
    }

    public void setStudentage(String studentage) {
        this.studentage = studentage;
    }


    @Override
    public String toString(){
        String str = this.id+"-"+this.studentname+"-"+this.studentage;
        System.out.println(str);
        return str;
    }
}
